package com.hongyun.tms.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 拖轮作业记录表
 * </p>
 *
 * @author liPeng
 * @since 2024-06-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("TMS_PORD_WORK")
@ApiModel(value = "TmsPordWork对象", description = "拖轮作业记录表")
public class PordWork implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId("ID")
    private Long id;

    @ApiModelProperty(value = "计划ID")
    @TableField("PLAN_ID")
    private Long planId;

    @ApiModelProperty(value = "拖轮ID")
    @TableField("TUG_ID")
    private Long tugId;

    @ApiModelProperty(value = "拖轮编号")
    @TableField("TUG_NO")
    private String tugNo;

    @ApiModelProperty(value = "开始作业时间")
    @TableField("BEGIN_TIME")
    private LocalDateTime beginTime;

    @ApiModelProperty(value = "结束作业时间")
    @TableField("END_TIME")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "作业项目ID")
    @TableField("WORK_ITEM_ID")
    private Long workItemId;

    @ApiModelProperty(value = "作业项目")
    @TableField("WORK_ITEM_NAME")
    private String workItemName;

    @ApiModelProperty(value = "作业时长")
    @TableField("WORK_HOURS")
    private BigDecimal workHours;

    @ApiModelProperty(value = "客户ID")
    @TableField("CUSTOMER_ID")
    private Long customerId;

    @ApiModelProperty(value = "客户名称")
    @TableField("CUSTOMER_NAME")
    private String customerName;

    @ApiModelProperty(value = "船舶ID")
    @TableField("SHIP_ID")
    private Long shipId;

    @ApiModelProperty(value = "船名")
    @TableField("SHIP_NAME")
    private String shipName;

    @ApiModelProperty(value = "贸别：内贸，外贸")
    @TableField("TRADE_TYPE")
    private String tradeType;

    @ApiModelProperty(value = "船舶类型代码")
    @TableField("SHIP_KIND_CODE")
    private String shipKindCode;

    @ApiModelProperty(value = "船舶类型名称")
    @TableField("SHIP_KIND_NAME")
    private String shipKindName;

    @ApiModelProperty(value = "拖轮费用")
    @TableField("AMOUNT")
    private BigDecimal amount;

    @ApiModelProperty(value = "备注")
    @TableField("REMARK")
    private String remark;

    @ApiModelProperty(value = "0未审核1已审核")
    @TableField("STATUS")
    private Integer status;

    @ApiModelProperty(value = "创建人ID")
    @TableField("CREATE_BY")
    private Long createBy;

    @ApiModelProperty(value = "创建人姓名")
    @TableField("CREATE_BY_NAME")
    private String createByName;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改人ID")
    @TableField("UPDATE_BY")
    private Long updateBy;

    @ApiModelProperty(value = "修改人姓名")
    @TableField("UPDATE_BY_NAME")
    private String updateByName;

    @ApiModelProperty(value = "修改时间")
    @TableField("UPDATE_TIME")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "作业港区代码,字典")
    @TableField("PORT_AREA_CODE")
    private String portAreaCode;

    @ApiModelProperty(value = "作业港区名称")
    @TableField("PORT_AREA_NAME")
    private String portAreaName;

    @ApiModelProperty(value = "作业地点")
    @TableField("WORK_LOCATION")
    private String workLocation;

    @ApiModelProperty(value = "油耗")
    @TableField("OIL_CONSUME")
    private BigDecimal oilConsume;


    @ApiModelProperty(value = "行驶里程")
    @TableField("DISTANCE")
    private BigDecimal distance;

    @ApiModelProperty(value = "计划费用公式备注")
    @TableField("calculate_remark")
    private String calculateRemark;
}
